/*********************************************************************************
  *FileName:  nsuc16xx_wwdg.h
  *Version:   V1.0
  *Date:      2024-03-22
**********************************************************************************/

#ifndef  __nsuc16xx_wwdg_H__
#define  __nsuc16xx_wwdg_H__

/***************************************Includes***********************************/
#include "nsuc16x0.h"


/***************************************Macros***********************************/
#define WWDG_Prescaler_1		((uint8_t)0x00)
#define WWDG_Prescaler_2		((uint8_t)0x01)
#define WWDG_Prescaler_4		((uint8_t)0x02)
#define WWDG_Prescaler_8		((uint8_t)0x03)
#define WWDG_Prescaler_16		((uint8_t)0x04)
#define WWDG_Prescaler_32		((uint8_t)0x05)
#define WWDG_Prescaler_64		((uint8_t)0x06)
#define WWDG_Prescaler_128      ((uint8_t)0x07)

/***************************************Variables***********************************/



/***************************************Functions***********************************/
void WWDG_Disable(void);
void WWDG_Enable(void);
void WWDG_SetPrescaler(uint8_t WWDG_Prescaler);
void WWDG_Set_WakeUpPrescaler(uint8_t WWDG_Prescaler);
void WWDG_SetWindowValue(uint8_t WindowValue);
void WWDG_SetCounter(uint8_t Counter);
FlagStatus WWDG_GetStatus(void);

#endif
/* [] END OF nsuc16xx_wwdg.h */
